# main.py

import sys
from PySide6.QtWidgets import QApplication
from PySide6.QtCore import QCoreApplication
from UDP import UDPServer
from UI_window import Ui_MainWindow
#from UI_window import Ui_MainWindow
#from annimation import Ui_MainWindow


# 创建 QApplication 实例
app = QApplication(sys.argv)

# 创建 UI 实例
UI_Instance = Ui_MainWindow()
UI_Instance.show()

# 创建 UDP 服务器实例
udpServer = UDPServer(app, UI_Instance.dataUpdated)

# 主程序入口
if __name__ == "__main__":
    sys.exit(app.exec())